-- GENERATED SPELL FOR [Ancient Water Spirit] --


function spell0_33202(pUnit, Event) --@Tidal Wave,n/a--
pUnit:FullCastSpellOnTarget(62653,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33202', 2000, 1)
end

function spell1_33202(pUnit, Event) --@Tidal Wave,n/a--
pUnit:FullCastSpellOnTarget(62935,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33202', 2000, 1)
end

function Sorts_33202(pUnit, Event)
local choix_sorts_33202 = math.random(0, 1)
if choix_sorts_33202 == 0 then
pUnit:RegisterEvent('spell0_33202', 1, 1)
end
if choix_sorts_33202 == 1 then
pUnit:RegisterEvent('spell1_33202', 1, 1)
end
end

function mob33202_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33202', math.random(1500, 3000), 1)
end

function mob33202_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33202_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33202_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33202, 1, 'mob33202_Action')
RegisterUnitEvent(33202, 2, 'mob33202_Leave')
RegisterUnitEvent(33202, 3, 'mob33202_Kill')
RegisterUnitEvent(33202, 4, 'mob33202_Die')
